<style>
#defectDetailInfoPg {
	width: 890px !important;
}

#defectDetailInfoPg .pageFormContent {
	padding: 5px;
}

#defectDetailInfoPg fieldset {
	border: 1px solid #d8dfe5;
	padding: 5px 0px 5px 5px;
}

#defectDetailInfoPg fieldset legend {
	margin-left: 2px;
}
</style>
<div id="defectDetailInfoPg" class="pageContent">
	<div class="pageFormContent">
		<fieldset>
			<legend><@label key='defectInfo.C'>缺陷信息</@label></legend>
			<dl>
				<dt><@label key='materialCode.C,colon'>物料编号：</@label></dt>
				<dd>
					<input name="materialCode" type="text" value="${inspectRecord.materialCode!''}" readonly="readonly" />
				</dd>
			</dl>
			<dl>
				<dt><@label key='materialText.C,colon'>物料名称：</@label></dt>
				<dd>
					<input name="materialText" type="text" value="${inspectRecord.materialText!''}" readonly="readonly" />
				</dd>
			</dl>
			<dl>
				<dt><@label key='defectDefine.C,quantity.C,colon'>缺陷数量：</@label></dt>
				<dd>
					<input name="quantity" type="text" value="${inspectRecord.quantity!''}" readonly="readonly" />
				</dd>
			</dl>
			<dl>
				<dt><@label key='defectCode.C,colon'>缺陷编号：</@label></dt>
				<dd>
					<input name="defectCode" type="text" value="${inspectRecord.defectCode!''}" readonly="readonly" />
				</dd>
			</dl>
			<dl>
				<dt><@label key='defectText.C,colon'>缺陷描述：</@label></dt>
				<dd>
					<input name="materialText" type="text" value="${inspectRecord.defectText!''}" readonly="readonly" />
				</dd>
			</dl>
			<dl>
				<dt><@label key="defectType.C,colon">缺陷类型：</@label></dt>
				<dd>
					<input readonly="readonly" type="text" value="<#if defect.defectTypeText != 'null'>${defect.defectTypeText!''}</#if>" />
				</dd>
			</dl>
			<dl>
				<dt><@label key="defectLevelText.C,colon">缺陷等级描述</@label></dt>
				<dd>
					<input readonly="readonly" type="text" value="<#if defect.defectLevelText != 'null'>${defect.defectLevelText!''}</#if>" />
				</dd>
			</dl>
			<dl>
				<dt><@label key="responsibilityTypeText.C,colon">责任类型描述</@label></dt>
				<dd>
					<input readonly="readonly" type="text" value="<#if defect.responsibilityTypeText != 'null'>${defect.responsibilityTypeText!''}</#if>" />
				</dd>
			</dl>
			<dl>
				<dt>
					<@label key="repairmethod.C,colon">返修方法：</@label></label>
				</dt>
				<dd>
					<input readonly="readonly" type="text" value="<#if defect.repairmethodText != 'null'>${defect.repairmethodText!''}</#if>" />
				</dd>
			</dl>
			<dl>
				<dt><@label key="workCenterCode.C,colon">工作中心编号：</@label></dt>
				<dd>
					<input name="workcenterCode" type="text" value="${inspectRecord.workcenterCode!''}" readonly="readonly" />
				</dd>
			</dl>
			<dl>
				<dt><@label key="workCenterText.C,colon">工作中心描述：</@label></dt>
				<dd>
					<input name="workcenterText" type="text" value="${inspectRecord.workcenterText!''}" readonly="readonly" />
				</dd>
			</dl>
			<dl>
				<dt><@label key='qmOperation.C,code.C,colon'>质检工序编号：</@label></dt>
				<dd>
					<input name="operationCode" type="text" value="${inspectRecord.operationCode!''}" readonly="readonly" />
				</dd>
			</dl>
			<dl>
				<dt><@label key='qmOperation.C,name.C,colon'>质检工序名称：</@label></dt>
				<dd>
					<input name="operationText" type="text" value="${inspectRecord.operationText!''}" readonly="readonly" />
				</dd>
			</dl>
			<dl>
				<dt><@label key='inspectUser.C,colon'>检验人员：</@label></dt>
				<dd>
					<input type="text" name="createUser" readonly="readonly" value="${inspectRecord.createUser!''}" />
				</dd>
			</dl>
			<dl>
				<dt><@label key='inspectDateTime.C,colon'>检验时间：</@label></dt>
				<dd>
					<input type="text" name="createDateTime" readonly="readonly" value="${(inspectRecord.createDateTime?string('yyyy-MM-dd'))?if_exists}" />
				</dd>
			</dl>
			<#if inspectRecord.attachments ?? && inspectRecord.attachments?size gt 0>
			<dl>
				<dt>
					<a target="dialog" mask="true" resizable="false" maxable="false" width="700" height="400" rel="INSPECT_ATTACHMENT_INFO" title="<@label key="attachmentInfo.C">附件信息</@label>" href="${rc.getContextPath()}/manage/defectGraph/attachmentInfo_search?inspectRecordId=${inspectRecord.id}&navTabId=${navTabId!''}" style="height: 25px; line-height: 25px; float: left; text-decoration: underline; color: #289BE5; cursor: pointer;"> <@label key="attachment.C">附件</@label>(${inspectRecord.attachments?size})</a>
				</dt>
			</dl>
			<#else>
			<style>
#defectDetailInfoPg dl.nowrap>div {
	height: 130px !important;
}
</style>
			</#if>
			<dl class="nowrap">
				<div style="margin: 10px auto; width: 480px; border: 1px solid #D8DFE5; height: 100px; text-align: left; padding: 0px; margin: 5px;">
					<table class="table canopration" style="width: 480px;" 
					<#if inspectRecord.attachments ?? && inspectRecord.attachments?size gt 0>
					layoutH="500"<#else>layoutH="470"</#if>
					>
						<thead>
							<tr>
								<th style="width: 200px;"><@label key="attributeText.C">属性描述</@label></th>
								<th><@label key="attributeValue.C">属性值</@label></th>
							</tr>
						</thead>
						<tbody>
							<#list defect.defectAttributeValue as defectAttribute>
							<tr>
								<td>${defectAttribute.attributeText}</td>
								<td>${defectAttribute.attributeValue}</td>
							</tr>
							</#list>
						</tbody>
					</table>
				</div>
			</dl>
		</fieldset>
		<fieldset style="padding-bottom: 15px;">
			<legend><@label key='productionControlNum.C,detail.C'>生产订单详情</@label></legend>
			<dl>
				<dt><@label key='productionControlNum.C,colon'>生产管理号：</@label></dt>
				<dd>
					<input type="text" name="productionControlNum" value="${inspectRecord.productionControlNum!''}" readonly="readonly" />
				</dd>
			</dl>
			<dl>
				<dt><@label key='productionOrderNum.C,colon'>生产订单编号：</@label></dt>
				<dd>
					<input type="text" name="productionOrderNum" value="${inspectRecord.productionOrderNum!''}" readonly="readonly" />
				</dd>
			</dl>
			<dl>
				<dt><@label key='productionlotNum.C,colon'>生产批次号：</@label></dt>
				<dd>
					<input type="text" name="productionlotNum" value="${inspectRecord.productionlotNum!''}" readonly="readonly" />
				</dd>
			</dl>

			<dl>
				<dt><@label key='workUnitCode.C,colon'>作业单元编号：</@label></dt>
				<dd>
					<input name="workunitCode" type="text" value="${inspectRecord.workunitCode!''}" readonly="readonly" />
				</dd>
			</dl>
			<dl>
				<dt><@label key="workUnitText.C,colon">作业单元描述：</@label></dt>
				<dd>
					<input name="workunitText" type="text" value="${inspectRecord.workunitText!''}" readonly="readonly" />
				</dd>
			</dl>
			<dl>
				<dt><@label key="orderStatus.C,colon">订单状态：</@label></dt>
				<dd>
					<input name="statuseText" type="text"  value="<#if orderStatusECode??><#list orderStatusECode as ecode><#if orderDetail.statuseCode == ecode.eCode>${ecode.eCodeText!''}</#if></#list></#if>" readonly="readonly"/>
				</dd>
			</dl>
			<dl>
				<dt><@label key="orderQuantity.C,colon">订单数量：</@label></dt>
				<dd>
					<input name="plannedQuantity" type="text" value="${orderDetail.plannedQuantity}" readonly="readonly" />
				</dd>
			</dl>
			<dl>
				<dt><@label key="operationDate.C,colon">投产日期：</@label></dt>
				<dd>
					<input name="actualstartDateTime" type="text" value="${(orderDetail.actualstartDateTime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}" readonly="readonly" />
				</dd>
			</dl>
			<dl>
				<dt><@label key="cmprocess_code.C,colon">工艺编号：</@label></dt>
				<dd>
					<input name="processCode" type="text" value="${orderDetail.processCode!''}" readonly="readonly" />
				</dd>
			</dl>
			<dl>
				<dt><@label key="cmprocessrev.C,colon">工艺版本：</@label></dt>
				<dd>
					<input name="workunitText" type="text" value="${orderDetail.processRev!''}" readonly="readonly" />
				</dd>
			</dl>
			<dl>
				<dt><@label key='customer.C,colon'>客户：</@label></dt>
				<dd>
					<input type="text" name="customer" value="${orderDetail.customer!''}" readonly="readonly" maxlength="40" />
				</dd>
			</dl>
			<dl>
				<dt><@label key='customerOrder.C,colon'>客户订单：</@label></dt>
				<dd>
					<input type="text" name="customerOrder" value="${orderDetail.customerOrder!''}" readonly="readonly" maxlength="40" />
				</dd>
			</dl>
			<dl>
				<dt><@label key='priority.C,colon'>优先级：</@label></dt>
				<dd>
					<input type="text" name="priority" value="${orderDetail.priority!''}" readonly="readonly" maxlength="40" />
				</dd>
			</dl>

		</fieldset>
	</div>
</div>
<div class="formBar">
	<ul>
		<li>
			<div class="buttonActive">
				<div class="buttonContent">
					<button type="button" class="close"><@label key="close.B">关闭</@label></button>
				</div>
			</div>
		</li>
	</ul>
</div>
<script type="text/javascript">
$(function(){
    $('fieldset > dl:nth-child(3n+4)', $.pdialog.getCurrent()).css({width: '260px'});
});
</script>